package cn.honqun.tinycms.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.List;

@Setter
@Getter
@Schema(title = "GrantRolesVO", description = "分配角色")
public class GrantRolesVO {
    /**
     * 用户ID
     */
    @NotNull(message = "用户ID是必须的")
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 要分配的角色ID列表
     */
    @Schema(description = "角色ID数组")
    private List<Long> roleIds;
}
